fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

infix ::

infix ::

infix operator to create a list from head h and a production
function f

This can be used, e.g., as follows:

Ex1: the identity can be used to repeat the same element


will create 1,1,1,1,...

Ex2: To create a list of all integers, use


which will produce 0,1,2,3,4,5,...

Ex3: The call


will produce the powers of two: 1,2,4,8,16,32,...

Type Parameters

A:Any[src]

Arguments

h A[src]
f Unary A A[src]
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)
last changed: 2026-11-23